import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({

	mode: 'history',
	routes: [{
			path: '/',
			name: 'Index',
			component: () => import('@/views'),
			children: [{
					path: '/bed',
					name: 'Bed',
					component: () => import('@/views/bed')
				},
				{
					path: '/evaluation_template',
					name: 'EvaluationTemplate',
					component: () => import('@/views/evaluation_template')
				},

				{
					path: '/health_records',
					name: 'HealthRecords',
					component: () => import('@/views/health_records')
				},
				{
					path: '/recure_regist',
					name: 'RecureRegist',
					component: () => import('@/views/recure_regist')
				},
				{
					path: '/recure_plan',
					name: 'RecurePlan',
					component: () => import('@/views/recure_plan')
				},

				{
					path: '/check_in',
					name: 'CheckIn',
					component: () => import('@/views/check_in')
				},
				{
					path: '/customer_information',
					name: 'CustomerInformation',
					component: () => import('@/views/customer_information')
				},
				{
					path: '/check_out',
					name: 'CheckOut',
					component: () => import('@/views/check_out')
				},
				{
					path: '/going_out',
					name: 'GoingOut',
					component: () => import('@/views/going_out')
				},
				{
					path: '/foodie',
					name: 'Foodie',
					component: () => import('@/views/foodie/index')
				},
				{
					path: '/foodie',
					name: 'Foodie',
					component: () => import('@/views/foodie/index1')
				},
				{
					path: '/food',
					name: 'Food',
					component: () => import('@/views/food')
				},

				{
					path: '/users_list',
					name: 'UsersList',
					component: () => import('@/views/users_list')
				},
				{
					path: '/nursing_content',
					name: 'NursingContent',
					component: () => import('@/views/nursing_content')
				},
				{
					path: '/nursing_records',
					name: 'NursingRecords',
					component: () => import('@/views/nursing_records')
				},
				{
					path: '/care_notes',
					name: 'CareNotes',
					component: () => import('@/views/care_notes')
				},
				{
					path: '/life_remind',
					name: 'LifeRemind',
					component: () => import('@/views/life_remind')
				},
				{
					path: '/complaint',
					name: 'Complaint',
					component: () => import('@/views/complaint')
				},
				{
					path: '/handle_emerg',
					name: 'HandleEmerg',
					component: () => import('@/views/handle_emerg')
				},
				{
					path: '/shuttle_route',
					name: 'ShuttleRoute',
					component: () => import('@/views/shuttle_route')
				},

				{
					path: '/staff_management',
					name: 'StaffManagement',
					component: () => import('@/views/staff_management')
				},
				{
					path: '/personnel_information',
					name: 'PersonnelInformation',
					component: () => import('@/views/personnel_information')
				},
				{
					path: '/doctor_information',
					name: 'DoctorInformation',
					component: () => import('@/views/doctor_information')
				},
				{
					path: '/approve',
					name: 'Approve',
					component: () => import('@/views/approve')
				}
			]
		},
		{
			path: '/login',
			name: 'Login',
			component: () => import('@/views/login')
		}

	]
})